package dev.ece.suit.loader;

import dev.ece.core.texture.Texture;

public class TextureFactory {

	private static TextureLoader textureLoader;
	
	public static void setTextureLoader(TextureLoader loader) {
		textureLoader = loader;
	}
	
	public static Texture createTexture(String name) {
		if(textureLoader != null) {
			return textureLoader.createTexture(name);
		}
		return null;
	}
	
}
